<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php session_start();?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mobile 4U</title>
<link rel="stylesheet" href="css/myStyle.css" />
<script type="text/javascript" src="js/myScript.js"></script>
</head>

<body bgcolor="#6633FF">
<?php
		include("code/myLib.php");
		include("code/DataProvider.php");
	?>
	<div id="navContain">
    	<div id="navHeader">
         <?php include("inc/incHeader.php"); ?>
    	</div>
        <div id="navMenu">
       	  <?php include("inc/incMenu.php"); ?>
        </div>
		<div id="navContent">
        	<?php
				if(!isset($_GET["act"]))
					$act = 1; //Load noi dung trang Index
				else
					$act = $_GET["act"];
				
				switch($act)
				{
					case 1:	//Load noi dung trang Index
						include("pages/pindex.php");
						break;
					case 2: //Load danh sach san pham theo nha san xuat
						include("pages/pSPNhaSanXuat.php");
						break;
					case 3: //Load danh sach san pham theo nha san xuat
						include("pages/pSPLoaiSanPham.php");
						break;
					case 4: //Load chi tiet cua mot DT
						include("pages/pChiTietDT.php");
						break;
					case 5: //Load chi tiet cua mot DT
						include("pages/tempDT.php");
						break;	
					case 6: //Load dn
						include("pages/pDangNhap.php");
						break;
					case 7: //Load chi tiet cua mot DT
						include("pages/dangky/pDangky.php");
						break;
					case 8: //Load chi tiet cua mot DT
						include("pages/GioiThieu.php");
						break;	
					case 9: //Load chi tiet cua mot DT
						include("pages/SanPham.php");
						break;	
					case 10: //Load chi tiet cua mot DT
						include("pages/LienHe.php");
						break;	
					case 11: //Load chi tiet cua mot DT
						include("pages/TinTuc.php");
						break;	
					case 12: //Load chi tiet cua mot DT
						include("pages/KhuyenMai.php");
						break;	
					case 13: //Load chi tiet cua mot DT
						include("pages/HuongDan.php");
						break;			
					case 14: //Quan ly gio hang
						include("pages/pGioHang.php");
						break;		
					case 16: //Tim kiem
						include("pages/timkiem/KQ.php");
						break;		
					case 17: //Quan ly gio hang
						include("pages/timkiem/KQNangCao.php");
						break;
					case 20:	//Load noi dung trang Index
						include("pages/dangky/pDangKy.php");
						break;		
				}
			?>
        </div>
        <div id="navFooter">
        	<?php include("inc/incFooter.php"); ?>
        </div>
    </div>
</body>
</html>